package com.ssy.lingxi.member.merchant.api.feign.inner;

import com.ssy.lingxi.common.response.PageData;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.member.merchant.api.model.vo.inner.request.MemberSalesFindUserIdVO;
import com.ssy.lingxi.member.merchant.api.model.vo.inner.request.MemberSalesReportOrderCountFeignVO;
import com.ssy.lingxi.member.merchant.api.model.vo.inner.response.MemberSalesFeignPageQueryVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.validation.Valid;
import java.util.List;

/**
 * 业务员小程序查询内部Feign接口
 * @author 郑小翠
 * @version 2.02.18
 * @date 2022-03-24
 */
@FeignClient(name = "merchant-member-service")
public interface MobileMemberSalesFeign {

    /**
     * 根据业务员Id查询下级会员信息
     *
     * @param pageVO 查询条件
     * @return 返回下级会员信息
     */
    @RequestMapping(value = "/member/feign/mobile/wechat/applet/sales/findByUserId", method = RequestMethod.POST)
    Wrapper<PageData<MemberSalesFeignPageQueryVO>> getSalesList(@RequestBody @Valid MemberSalesFindUserIdVO pageVO);

}
